package com.codegenerate.demo.dto;

import java.util.List;

public class ResultPage<T> {
    List<T> data;
    long total;

    public static <T>  ResultPage build(T t){
        return new ResultPage<T>();
    }

    public List<T> getData() {
        return data;
    }

    public ResultPage setData(List<T> list) {
        this.data = list;
        return this;
    }

    public long getTotal() {
        return total;
    }

    public ResultPage setTotal(long total) {
        this.total = total;
        return this;
    }
}
